package RLK_AWT;

public class Example_02 {
    public void deleteAll(File[] files) {
        for (final File file : files) {
            ConfirmDialog confirmDialog = new ConfirmDialog(file);
            try {
                confirmDialog.setVisible(true);
                if (confirmDialog.isConfimed()) {
                    file.delete();
                }
            } finally {
                confirmDialog.dispose();
            }
        }
    }
}
